export interface IEnums {
  MESSAGE_TYPE: typeof MESSAGE_TYPE
  USER_STATE: typeof USER_STATE
  TERMINAL_TYPE: typeof TERMINAL_TYPE
  MESSAGE_STATUS: typeof MESSAGE_STATUS
}

export enum MESSAGE_TYPE {
  TEXT = 0,
  IMAGE = 1,
  FILE = 2,
  AUDIO = 3,
  VIDEO = 4,
  RECALL = 10,
  READED = 11,
  TIP_TIME = 20,
  RTC_CALL = 101,
  RTC_ACCEPT = 102,
  RTC_REJECT = 103,
  RTC_CANCEL = 104,
  RTC_FAILED = 105,
  RTC_HANDUP = 106,
  RTC_CANDIDATE = 107
}

export enum USER_STATE {
  OFFLINE,
  FREE,
  BUSY
}

export enum TERMINAL_TYPE {
  WEB,
  APP
}

export enum MESSAGE_STATUS {
  UNSEND,
  SENDED,
  RECALL,
  READED
}

export const enums: IEnums = {
  MESSAGE_TYPE,
  USER_STATE,
  TERMINAL_TYPE,
  MESSAGE_STATUS
}